<?php
namespace Fendx\Funcs;

use Fendx\Core\RequestContext;

/**
 * SaaS 工具箱
 *
 * @deprecated use Fendx\Funcs\FendxRealm
 *
 **/
class FendxSaaS
{
    const KEY = '__saas_partition_id';
    public static function setPartitionId(int $id) {
        RequestContext::set(self::KEY, $id);
    }

    public static function getPartitionId(): int {
        return RequestContext::get(self::KEY, 1);
    }
}
